//
//  MCButtonViewController.swift
//  MCComponentPublicUI_Example
//
//  Created by 满聪 on 2019/7/11.
//  Copyright © 2019 CocoaPods. All rights reserved.
//

import UIKit


class MCButtonViewController: UIViewController {
    // life cycle
    override func viewDidLoad() {
        super.viewDidLoad()
        
        baseSetting()
        
        initUI()
        
        
        let button = UIButton.init(type: .custom)
        button.setImage(UIImage.init(named: "add_edit"), for: .normal)
        button.setTitle("编辑", for: .normal)
        button.frame = CGRect.init(x: 100, y: 100, width: 200, height: 200)
        button.backgroundColor = UIColor.yellow
        button.setTitleColor(UIColor.black, for: .normal)
        button.directionFunc(direction: .horizontalReverse, margin: 10)
        view.addSubview(button)
    }
    
    // MARK: - Setter & Getter
    
}

//MARK: 通知回调，闭包回调，点击事件
extension MCButtonViewController {
    
}

//MARK: UI的处理,通知的接收
extension MCButtonViewController {
    
    func baseSetting() {
        self.title = "Button"
    }
    
    func initUI() {
        
    }
}

//MARK: 代理方法

